package pers.amos.edu.mapper;

import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import pers.amos.edu.pojo.User;
import tk.mybatis.mapper.common.Mapper;

/**
 * @author amos wong
 * @create 2020-02-01 18:58
 */

@Repository
public interface UserMapper extends Mapper<User> {
    /**
     * 根据openId 获取用户信息
     * @param openId
     * @return
     */
    @Select("select * from tb_user where open_id=#{openId}")
    User getUserInfoByOpenId(String openId);

}
